package pl.edu.utp.kursy;

import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.UIManager;

public class JFrameGUI extends JFrame{
    
    {
        UIManager.put("OptionPane.noButtonText", "Nie");
        UIManager.put("OptionPane.yesButtonText", "Tak");
        UIManager.put("OptionPane.cancelButtonText", "Anuluj");
    }
    
    
    public JFrameGUI(){
    
    }
    
    protected void setCenteredPosition(){
        Dimension screenSize = getToolkit().getScreenSize();
        int x = (screenSize.width / 2) - (getWidth() / 2);
        int y = (screenSize.height / 2) - (getHeight() / 2);
        setLocation(x, y);
    }
    
    protected String getString(String key){
        return StringsProperties.getString(key);
    }
    
    
}
